const {queryQuziListService,queryTalkByIdService} = require("../service/quzi.service")
class quziController {
    // 查询圈子group
    async queryQuziGroupControl(ctx,next) {
        const requestObj = ctx.request.body;
        const res = await queryQuziListService(requestObj);
        ctx.body={
            code:200,
            message:"success",
            data:res,
        }
    }

    // 按groupId查找
    async queryTalkByIdControl(ctx,next) {
        let { groupId } = ctx.request.body;
        const res = await queryTalkByIdService(groupId);
        ctx.body = {
            code:200,
            message:"success",
            data:res,
        }
    }
}


module.exports = new quziController();